package fun.sboy.jdbc;

import java.util.Properties;

public class JDBCProperties {
    public static final String driverClassName = "com.mysql.cj.jdbc.Driver";
    public static String databaseName = null;
    public static String username = null;
    public static String password = null;

    public static Properties getProperties() {
        Properties properties = new Properties();

        properties.setProperty("driverClassName", JDBCProperties.driverClassName);
        properties.setProperty("url", "jdbc:mysql://localhost:3306/" + JDBCProperties.databaseName);
        properties.setProperty("username", JDBCProperties.username);
        properties.setProperty("password", JDBCProperties.password);
        properties.setProperty("maxWait","1000");

        return properties;
    }
}
